<template>
  <!--微信弹窗-->
  <div class="popWei popW" v-show="isShowW">
    <transition
      name="fade"
    >
      <div class="popW-centent" v-show="isShowW">
        <p><span class="iconfont icon-guanbi" @click="closePopW()"></span></p>
        <p>
          <!--<img :src="imgSrc" alt="code">-->
          <img src="imgSrc" alt="code">
        </p>
        <p>长按识别二维码，联系我们</p>
      </div>
    </transition>
  </div>
</template>

<script>
  export default {
    date(){
      return {

      }
    },
    props:['imgSrc','isShowW'],
    methods:{
      //关闭弹窗
      closePopW() {
        this.$emit('close','w');
      },
    }
  }
</script>

<style scoped>
  .popW {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
  }

  .popW-centent {
    width: 74%;
    height: 20%;
    background-color: #fff;
    -webkit-border-radius: .5rem;
    -moz-border-radius: .5rem;
    border-radius: .5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
  }

  .popW-title {
    width: 100%;
    height: 30%;
    color: #333;
    line-height: 3rem;
    font-size: 16px;
    font-weight: bold;
  }

  .popW-main {
    width: 100%;
    height: 40%;
    color: #666;
    line-height: 3rem;
    font-size: 14px;
  }

  .popW-main a {
    color: #666;
    border: 1px solid #ccc;
    -webkit-border-radius: 1.5rem;
    -moz-border-radius: 1.5rem;
    border-radius: 1.5rem;
    padding: 3px 6px;
    font-size: 12px;
    margin-left: 10px;
    text-decoration: none;
  }

  .popW-confirm {
    width: 100%;
    height: 30%;
    line-height: 2.5rem;
    border-top: 1px solid #eee;
    color: #0bf;
  }

  .popWei .popW-centent{
    height: auto;
    width: 68%;
  }

  .popWei .popW-centent p:first-child{
    text-align: right;
    height: 30%;
    line-height: 2.5rem;
    padding-right: 5%;
    box-sizing: border-box;
  }

  .popWei .popW-centent p:nth-child(2) img{
    width: 74%  ;
  }

  .popWei .popW-centent p:nth-child(3){
    color:#333;
    line-height: 2.5rem;
  }
</style>
